<?php
$goodsname = $_POST["goodsname"];
$goodstype = $_POST["goodstype"];
$goodsprice = $_POST["goodsprice"];
$goods = mysqli_connect("localhost","root","root","goods");
$res = mysqli_query($goods,"insert into goodsinfo(goodsname,price,type,num,time) values('{$goodsname}','{$goodsprice}','{$goodstype}',0,now())");
echo $res;
?>